package nl.ViewerServer.ServerManager.UserManager.Objects;

import java.sql.Timestamp;

public class User {
	public int userId;
	public String username;
	public String password;
	public int maxSessions;
	public int maxInstances;
	public boolean isDeleted;
	public Timestamp altered;
	
	public User(int userId, String username, String password, int maxSessions,
			int maxInstances, boolean isDeleted, Timestamp altered) {
		super();
		this.userId = userId;
		this.username = username;
		this.password = password;
		this.maxSessions = maxSessions;
		this.maxInstances = maxInstances;
		this.isDeleted = isDeleted;
		this.altered = altered;
	}

	
	public boolean verifyPassword(String password) {
		return this.password.equals(password);
	}


	public String toString() {
		return "User: "+this.username+"/"+userId;
	}

}
